//
//  FCEmployeeGroupView.m
//  customerRelation_Example
//
//  Created by 陈文斌 on 2019/2/19.
//  Copyright © 2019 64912907. All rights reserved.
//

#import "FCEmployeeGroupView.h"
#import "CustomerRelationHeader.h"

@implementation FCEmployeeGroupView

- (instancetype)init{
    if ([super init]) {
        self.backgroundColor = [UIColor whiteColor];
        _arrowImageView = [[UIImageView alloc] init];
        [self addSubview:_arrowImageView];
        [_arrowImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(10);
            make.centerY.mas_equalTo(0);
            make.width.and.height.mas_equalTo(12);
        }];
        _arrowImageView.image = customerRelationImageName(@"ic_arrow_left");
        
        _groupNameLabel = [UILabel new];
        [self addSubview:_groupNameLabel];
        [_groupNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(_arrowImageView.mas_right).mas_equalTo(10);
            make.centerY.mas_equalTo(0);
        }];
        _groupNameLabel.font = font15;
        _groupNameLabel.textColor = FCTxtColor;
        _groupNameLabel.numberOfLines = 1;
        
        _employeeCountLabel = [UILabel new];
        [self addSubview:_employeeCountLabel];
        [_employeeCountLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.mas_equalTo(0);
            make.right.mas_equalTo(-16);
        }];
        _employeeCountLabel.textColor = FCGrayTxtPlaceColor;
        _employeeCountLabel.font = font13;
        _employeeCountLabel.numberOfLines = 1;
    }
    return self;
}

@end
